home *** CD-ROM | disk | FTP | other *** search
/ Atari Mega Archive 1 / Atari Mega Archive - Volume 1.iso / lists / mint / l_0799 / 709 < prev    next >
Encoding:
Internet Message Format  |  1994-08-27  |  1.4 KB

  1. From: Kay Roemer <roemer@informatik.uni-frankfurt.de>
  2. Posted-Date: Wed, 15 Dec 93 14:52:26 MEZ
  3. Received-Date: Wed, 15 Dec 93 14:52:26 +0100
  4. Message-Id: <9312151352.AA11794@hera.rbi.informatik.uni-frankfurt.de>
  5. Subject: extension for addtimeout()
  6. To: mint@atari.archive.umich.edu
  7. Date: Wed, 15 Dec 93 14:52:26 MEZ
  8. Mailer: Elm [revision: 70.85]
  9.  
  10.  
  11. The current addtimeout() lacks the possibility to specify
  12. a process to which the timeout should be attached.
  13.  
  14. This is a problem, because all of a process' timeouts are
  15. deleted when the process exits. So the timeout function
  16. is not executed if the process exits before the timeout
  17. happens.
  18.  
  19. This is bad news, since in MiNT-Net the IP protocol will
  20. be implemented as a kernel hook (ie no seperate process).
  21. When a packet arrives over the Network, an interrupt
  22. routine should add a timeout to MiNT (to ensure the
  23. timeout function is really executed) for the main IP
  24. function, which then processes the packet.
  25.  
  26. This makes it also necessary to make the timeout stuff
  27. interrupt prove.
  28.  
  29. I suggest a new function, which should be available over
  30. struct *kerinfo for device drivers:
  31.  
  32. TIMEOUT
  33. *addproctimeout (long delta, void (*f) (PROC *), short pid);
  34.  
  35. which adds a timeout function `f' to be called in `delta'
  36. milliseconds to process `pid'. addtimeout() would then be
  37. a special case of addproctimeout().
  38.  
  39. This is only a first idea, any suggestions are welcome.
  40. What do you think about it, Eric ?
  41.  
  42. Cheers,
  43. Kay.
  44.  
  45.